Skip to content

Optimize getting of ShortName of System.Type #333

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 16, 2023

Conversation

alex-kulakov
Copy link
Contributor

  • System.Type.Name instead of .GetShortName() extension in places where there it is obvious that short name is equal to Type.Name (type is not nested, it is class, and it is not generic), only for types we have created and control.
  • avoid getting type name when logging is skipped.

RuntimeType has names caching mechanisms so we can rely on it instead of having ours.

- System.Type.Name instead of .GetShortName() extension in places
where there it is obvious that short name is equal to Type.Name (type is
not nested, it is class, and it is not generic), only for types we
have created and control.
- avoid getting type name when logging is skipped.

RuntimeType has names caching mechanisms so we can rely on it instead
of having ours.
@alex-kulakov alex-kulakov merged commit cbc2a82 into master Aug 16, 2023
@alex-kulakov alex-kulakov deleted the master-type-names-opt branch August 16, 2023 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant